package br.com.dev.tcc.bean;

import java.util.Hashtable;

import org.ksoap2.serialization.KvmSerializable;
import org.ksoap2.serialization.PropertyInfo;

public class Mecanica implements KvmSerializable {

	private int id;
	private String nome;
	private String endereco;
	private String latitude;
	private String longitude;


	
	public Mecanica() {

	
	
	}

	@Override
	public Object getProperty(int index) {
		
		switch (index) {
		case 0:
			return id;
		case 1:
			return nome;	
		case 2:
			return endereco;
		case 3:
			return latitude;
		case 4:
			return longitude;

		}

		return null;
	}

	@Override
	public int getPropertyCount() {
		return 5;
	}

	@Override
	public void getPropertyInfo(int index, Hashtable arg1, PropertyInfo info) {
		switch (index) {
		case 0:
			info.type = PropertyInfo.INTEGER_CLASS;
			info.name = "id";
			break;
		case 1:
			info.type = PropertyInfo.STRING_CLASS;
			info.name = "nome";
			break;
		case 2:
			info.type = PropertyInfo.STRING_CLASS;
			info.name = "endereco";
			break;
		case 3:
			info.type = PropertyInfo.STRING_CLASS;
			info.name = "latitude";
			break;
		case 4:
			info.type = PropertyInfo.STRING_CLASS;
			info.name = "longitude";
			break;
	
		default:
			break;
		}
	
	}

	@Override
	public void setProperty(int index, Object value) {
	}

	
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getNome() {
		return nome;
	}

	public void setNome(String nome) {
		this.nome = nome;
	}

	public String getEndereco() {
		return endereco;
	}

	public void setEndereco(String endereco) {
		this.endereco = endereco;
	}

	public String getLatitude() {
		return latitude;
	}

	public void setLatitude(String latitude) {
		this.latitude = latitude;
	}

	public String getLongitude() {
		return longitude;
	}

	public void setLongitude(String longitude) {
		this.longitude = longitude;
	}



}
